using System;
using NUnit.Framework;
using Pine.Core;
using Pine.Compiler.Utils;

namespace UnitTests
{
	[TestFixture]
	public class TestStatements
	{
		[Test]
		public void TestReturnEllipsis() {
			ValueList rl = new ValueList();
			
			Compiler.ExecuteString("test-casts-number-multiple", "main", @"\foo() return 1, 2; \main() return... foo();", rl, null);
			Assert.AreEqual(2, rl.Size);
			Assert.AreEqual(new Number(1), rl.GetArrayElement(0));
			Assert.AreEqual(new Number(2), rl.GetArrayElement(1));
		}
	}
}

